// route路由枚举

// tabbar 页面 枚举
const TAB_BAR_PAGE = {
    index: '/pages/index/index',
    star: '/pages/star/index',
    owner: '/pages/owner/index'
};

// 页面追踪枚举
const LANDING_PAGE = {
    'pages/index/index': 'home',
    'package-common/pages/share-user/index': 'user_home',
    'package-common/pages/share-brand/index': 'brand_home',
    // 'package-common/pages/share-store/index': 'store_home',
    // '': 'user_invitation',
    // 'package-activity/pages/detail/index': ['brand_activity', 'spokesman_activity', 'store_activity'],
    'package-activity/pages/detail/index': ['brand_activity', 'spokesman_activity'],
    'package-common/pages/share-apply-spokesman/index': 'brand_endorsement',
};

// common 页面枚举
const COMMON_PAGE = {
    // webview
    webview: '/pages/webview/index',
    // 分享的用户主页
    shareUser: '/package-common/pages/share-user/index',
    // 分享的品牌主页
    shareBrand: '/package-common/pages/share-brand/index',
    // 分享的店铺主页
    shareStore: '/package-common/pages/share-store/index',
    // 申请成为品牌代言人
    shareApplySpokesman: '/package-common/pages/share-apply-spokesman/index',
    // 申请成为品牌分销员
    shareApplyDistributor: '/package-common/pages/share-apply-distributor/index',
    // 申请成为店铺代言人
    shareApplyStoreSpokesman: '/package-common/pages/share-apply-store-spokesman/index',
};

// package-order 相关页面路由
const PACKAGE_ORDER_PAGE = {
    // 确认订单
    orderReview: '/package-order/pages/order-review/index',
    // 订单列表
    orderList: '/package-order/pages/order-list/index',
    // 订单详情
    orderDetail: '/package-order/pages/order-detail/index',
    // 取消订单
    orderCancel: '/package-order/pages/order-cancel/index',
    // 选择售后类型
    orderAfterSaleType: '/package-order/pages/after-sale-type/index',
    // 申请售后
    orderAfterSaleApply: '/package-order/pages/after-sale-apply/index',
    // 售后详情
    orderAfterSaleDetail: '/package-order/pages/after-sale-detail/index',
    // 选择自提点
    selectPickupSite: '/package-order/pages/select-pickup-site/index',
    // 选择地址
    selectAddress: '/package-order/pages/select-address/index',
    // 品牌订单列表
    brandOrderList: '/package-order/pages/brand-order-list/index',
    // 品牌订单详情
    brandOrderDetail: '/package-order/pages/brand-order-detail/index',
    // 品牌售后详情
    brandAfterSaleDetail: '/package-order/pages/brand-after-sale-detail/index',
    // 店铺订单列表
    storeOrderList: '/package-order/pages/store-order-list/index',
    // 店铺订单详情
    storeOrderDetail: '/package-order/pages/store-order-detail/index',
    // 店铺售后详情
    storeAfterSaleDetail: '/package-order/pages/store-after-sale-detail/index',
    // 推广订单列表
    expandOrderList: '/package-order/pages/expand-order-list/index',
    // 推广订单详情
    expandOrderDetail: '/package-order/pages/expand-order-detail/index',
    // 推广订单售后单详情
    expandAfterSaleDetail: '/package-order/pages/expand-after-sale-detail/index',
};

// package-product 商品相关路由
const PACKAGE_PRODUCT_PAGE = {
    // 品牌商品库
    productList: '/package-product/pages/product-list/index',
    // 品牌商品导入
    productImport: '/package-product/pages/product-import/index',
    // 品牌商品分组管理
    productGroupList: '/package-product/pages/product-group-list/index',
    // 品牌商品编辑
    productEdit: '/package-product/pages/product-edit/index',
    // 品牌商品属性管理
    productProperty: '/package-product/pages/product-property/index',
    // 品牌商品规格管理
    productSku: '/package-product/pages/product-sku/index',
    // 店铺商品库
    storeProductList: '/package-product/pages/store-product-list/index',
    // 店铺商品分组管理
    storeProductGroupList: '/package-product/pages/store-product-group-list/index',
};

// package-activity 活动相关页面路由
const PACKAGE_ACTIVITY_PAGE = {
    // 活动详情
    detail: '/package-activity/pages/detail/index',
    // 活动管理(列表)
    activityList: '/package-activity/pages/activity-list/index',
    // 活动复制(列表)
    activityCopyList: '/package-activity/pages/activity-copy-list/index',
    // 活动数据统计
    activityStats: '/package-activity/pages/activity-stats/index',
    // 活动帮卖管理统计
    activityStatsConsignment: '/package-activity/pages/activity-stats-consignment/index',
    // 活动新建(编辑)
    activityEdit: '/package-activity/pages/activity-edit/index',
    // 活动新建(编辑)-背景设置
    activityEditBackground: '/package-activity/pages/activity-edit-background/index',
    // 活动新建(编辑)-配送方式
    activityEditDeliverySelect: '/package-activity/pages/activity-edit-delivery-select/index',
    // 活动新建(编辑)-配送费
    activityEditDelivery: '/package-activity/pages/activity-edit-delivery/index',
    // 活动新建(编辑)-发货仓
    activityEditWarehouse: '/package-activity/pages/activity-edit-warehouse/index',
    // 活动新建(编辑)-商品库
    activityEditProduct: '/package-activity/pages/activity-edit-product/index',
    // 活动新建(编辑)-规格
    activityEditScale: '/package-activity/pages/activity-edit-scale/index',
    // 活动新建(编辑)-代言帮卖设置
    activityEditSpokes: '/package-activity/pages/activity-edit-spokes/index',
    // 活动新建(编辑)-选择代言人
    activityEditSpokesman: '/package-activity/pages/activity-edit-spokesman/index',
    // 活动新建(编辑)-分享封面
    activityEditCover: '/package-activity/pages/activity-edit-cover/index',
    // 活动新建(编辑)-预览
    activityPreview: '/package-activity/pages/activity-preview/index',
    // 代言人活动数据统计
    spokesActivityStats: '/package-activity/pages/spokes-activity-stats/index',
    // 店铺活动管理(列表)
    storeActivityList: '/package-activity/pages/store-activity-list/index',
    // 店铺活动复制(列表)
    storeActivityCopyList: '/package-activity/pages/store-activity-copy-list/index',
    // 店铺活动数据统计
    storeActivityStats: '/package-activity/pages/store-activity-stats/index',
    // 店铺活动帮卖管理统计
    storeActivityStatsConsignment: '/package-activity/pages/store-activity-stats-consignment/index',
    // 店铺活动新建(编辑)
    storeActivityEdit: '/package-activity/pages/store-activity-edit/index',
    // 店铺活动新建(编辑)-代言帮卖设置
    storeActivityEditSpokes: '/package-activity/pages/store-activity-edit-spokes/index',
    // 店铺活动新建(编辑)-选择代言人
    storeActivityEditSpokesman: '/package-activity/pages/store-activity-edit-spokesman/index',
    // 代言人活动代言-预览
    storeActivityPreview: '/package-activity/pages/store-activity-preview/index',
};

// 营销活动页面
const PACKAGE_MARKET_PAGE = {
    // 抽奖详情
    lotteryDetail: '/package-market/pages/lottery-detail/index',
    // 抽奖详情-抽奖
    lotteryDraw: '/package-market/pages/lottery-draw/index',
    // 抽奖中奖记录
    lotteryRecord: '/package-market/pages/lottery-record/index',
    // 抽奖活动新建(编辑)
    lotteryEdit: '/package-market/pages/lottery-edit/index',
    // 抽奖活动新建(编辑)-背景设置
    lotteryEditBackground: '/package-market/pages/lottery-edit-background/index',
    // 抽奖活动新建(编辑)-奖品(实物商品)
    lotteryEditProduct: '/package-market/pages/lottery-edit-product/index',
    // 抽奖活动新建(编辑)-奖品(实物商品)库存
    lotteryEditScale: '/package-market/pages/lottery-edit-scale/index',
    // 抽奖活动新建(编辑)-奖品(优惠券)
    lotteryEditCoupon: '/package-market/pages/lottery-edit-coupon/index',
    // 抽奖活动新建(编辑)-奖品概率
    lotteryEditProbability: '/package-market/pages/lottery-edit-probability/index',
    // 抽奖活动新建(编辑)-生效时段
    lotteryEditTimerange: '/package-market/pages/lottery-edit-timerange/index',
    // 抽奖活动新建(编辑)-发货仓
    lotteryEditWarehouse: '/package-market/pages/lottery-edit-warehouse/index',
    // 抽奖活动新建(编辑)-预览
    lotteryPreview: '/package-market/pages/lottery-preview/index',
};

// 每日签到页面
const PACKAGE_SIGNIN_PAGE = {
    // 签到详情
    detail: '/package-signin/pages/detail/index',
    // 签到中奖记录
    signinRecord: '/package-signin/pages/signin-record/index',
    // 签到新建(编辑)
    signinEdit: '/package-signin/pages/signin-edit/index',
    // 签到新建(编辑)-背景设置
    signinEditBackground: '/package-signin/pages/signin-edit-background/index',
    // 签到新建(编辑)-奖品(实物商品)
    signinEditProduct: '/package-signin/pages/signin-edit-product/index',
    // 签到新建(编辑)-奖品(优惠券)
    signinEditCoupon: '/package-signin/pages/signin-edit-coupon/index',
    // 签到新建(编辑)-奖励规则
    signinEditRule: '/package-signin/pages/signin-edit-rule/index',
    // 签到新建(编辑)-发货仓
    signinEditWarehouse: '/package-signin/pages/signin-edit-warehouse/index',
};

// package-star 页面 枚举
const PACKAGE_STAR_PAGE = {
    // 品牌、门店开通
    manageTargetOpen: '/package-star/pages/manage-target-open/index',
    // 品牌、门店开通切换
    manageTargetExchange: '/package-star/pages/manage-target-exchange/index',
    // 品牌开通
    brandOpen: '/package-star/pages/brand-open/index',
    // 品牌管理员
    brandManager: '/package-star/pages/brand-manager/index',
    // 添加品牌管理员
    brandManagerAdd: '/package-star/pages/brand-manager-add/index',
    // 品牌粉丝
    brandFans: '/package-star/pages/brand-fans/index',
    // 品牌代言设置
    brandSpokesSetting: '/package-star/pages/brand-spokes-setting/index',
    // 品牌代言设置=>申请信息
    brandSpokesSettingApply: '/package-star/pages/brand-spokes-setting-apply/index',
    // 品牌代言人
    brandSpokesman: '/package-star/pages/brand-spokesman/index',
    // 品牌代言人审核
    brandSpokesmanAudit: '/package-star/pages/brand-spokesman-audit/index',
    // 品牌分销设置
    brandDistributeSetting: '/package-star/pages/brand-distribute-setting/index',
    // 品牌分销设置=>招募设置
    brandDistributeSettingEndorse: '/package-star/pages/brand-distribute-setting-endorse/index',
    // 品牌分销设置=>申请信息
    brandDistributeSettingApply: '/package-star/pages/brand-distribute-setting-apply/index',
    // 品牌分销设置=>供货商品
    brandDistributeSettingProduct: '/package-star/pages/brand-distribute-setting-product/index',
    // 品牌分销设置=>供货方式
    brandDistributeSettingSupply: '/package-star/pages/brand-distribute-setting-supply/index',
    // 品牌分销设置=>配送费
    brandDistributeSettingDelivery: '/package-star/pages/brand-distribute-setting-delivery/index',
    // 品牌分销设置=>供货仓
    brandDistributeSettingWarehouse: '/package-star/pages/brand-distribute-setting-warehouse/index',
    // 品牌分销员
    brandDistributor: '/package-star/pages/brand-distributor/index',
    // 品牌分销员审核
    brandDistributorAudit: '/package-star/pages/brand-distributor-audit/index',
    // 品牌分销员数据分析
    brandDistributorStats: '/package-star/pages/brand-distributor-stats/index',
    // 更多设置
    brandMoreSetting: '/package-star/pages/brand-more-setting/index',
    // 主页设置
    brandSetting: '/package-star/pages/brand-setting/index',
    // 主页设置 => 背景
    brandSettingBg: '/package-star/pages/brand-setting-bg/index',
    // 主页设置 => 头像
    brandSettingPic: '/package-star/pages/brand-setting-pic/index',
    // 主页设置 => 名称
    brandSettingName: '/package-star/pages/brand-setting-name/index',
    // 主页设置 => 简介
    brandSettingIntro: '/package-star/pages/brand-setting-intro/index',
    // 主页设置 => 客服电话
    brandSettingTel: '/package-star/pages/brand-setting-tel/index',
    // 主页设置 => 加粉设置
    brandSettingSns: '/package-star/pages/brand-setting-sns/index',
    // 加粉新建(编辑)
    brandSnsEdit: '/package-star/pages/brand-sns-edit/index',
    // 仓库设置
    brandWarehouseSetting: '/package-star/pages/brand-warehouse-setting/index',
    // 仓库新建(编辑)
    brandWarehouseEdit: '/package-star/pages/brand-warehouse-edit/index',
    // 收益
    brandEarning: '/package-star/pages/brand-earning/index',
    // 收益明细
    brandEarningRecord: '/package-star/pages/brand-earning-record/index',
    // 收益明细详情
    brandEarningDetail: '/package-star/pages/brand-earning-detail/index',
    // 提现
    brandWithdraw: '/package-star/pages/brand-withdraw/index',
    // 提现银行卡
    brandWithdrawCard: '/package-star/pages/brand-withdraw-card/index',
    // 提现记录
    brandWithdrawRecord: '/package-star/pages/brand-withdraw-record/index',
    // 微信支付商户
    brandWxpayApplyment: '/package-star/pages/brand-wxpay-applyment/index',
};

// package-store 页面 枚举
const PACKAGE_STORE_PAGE = {
    // 店铺开通
    storeOpen: "/package-store/pages/store-open/index",
    // 店铺粉丝
    storeFans: "/package-store/pages/store-fans/index",
    // 店铺代言设置
    storeSpokesSetting: '/package-store/pages/store-spokes-setting/index',
    // 店铺代言设置=>申请信息
    storeSpokesSettingApply: '/package-store/pages/store-spokes-setting-apply/index',
    // 店铺代言人
    storeSpokesman: '/package-store/pages/store-spokesman/index',
    // 店铺代言人审核
    storeSpokesmanAudit: '/package-store/pages/store-spokesman-audit/index',
    // 更多设置
    storeMoreSetting: '/package-store/pages/store-more-setting/index',
    // 主页设置
    storeSetting: '/package-store/pages/store-setting/index',
    // 主页设置 => 背景
    storeSettingBg: '/package-store/pages/store-setting-bg/index',
    // 主页设置 => 头像
    storeSettingPic: '/package-store/pages/store-setting-pic/index',
    // 主页设置 => 名称
    storeSettingName: '/package-store/pages/store-setting-name/index',
    // 主页设置 => 简介
    storeSettingIntro: '/package-store/pages/store-setting-intro/index',
    // 主页设置 => 客服电话
    storeSettingTel: '/package-store/pages/store-setting-tel/index',
    // 主页设置 => 加粉设置
    storeSettingSns: '/package-star/pages/store-setting-sns/index',
    // 加粉新建(编辑)
    storeSnsEdit: '/package-star/pages/store-sns-edit/index',
    // 收益
    storeEarning: '/package-store/pages/store-earning/index',
    // 收益明细
    storeEarningRecord: '/package-store/pages/store-earning-record/index',
    // 收益明细详情
    storeEarningDetail: '/package-store/pages/store-earning-detail/index',
    // 提现
    storeWithdraw: '/package-store/pages/store-withdraw/index',
    // 提现记录
    storeWithdrawRecord: '/package-store/pages/store-withdraw-record/index',
};

// package-owner 相关页面路由
const PACKAGE_OWNER_PAGE = {
    // 个人主页设置
    ownerSetting: '/package-owner/pages/owner-setting/index',
    // 我的粉丝
    ownerFans: '/package-owner/pages/owner-fans/index',
    // 我的浏览
    ownerFollow: '/package-owner/pages/owner-follow/index',
    // 我的代言(品牌、店铺)
    ownerEndorsement: '/package-owner/pages/owner-endorsement/index',
    // 我的代言活动
    ownerActivity: '/package-owner/pages/owner-activity/index',
    // 我参与的活动
    ownerJoin: '/package-owner/pages/owner-join/index',
    // 我的购买
    ownerBuy: PACKAGE_ORDER_PAGE.orderList,
    // 我的收益
    ownerEarnings: '/package-owner/pages/owner-earnings/index',
    // 收益明细列表
    ownerEarningsLog: '/package-owner/pages/owner-earnings-log/index',
    // 收益明细详情
    ownerEarningsDetail: '/package-owner/pages/owner-earnings-detail/index',
    // 推广订单
    ownerOrderList: PACKAGE_ORDER_PAGE.expandOrderList,
    // 提现页面
    ownerWithdraw: '/package-owner/pages/owner-withdraw/index',
    // 提现记录
    ownerWithdrawLog: '/package-owner/pages/owner-withdraw-log/index',
    // 修改名称
    ownerSettingNameChange: '/package-owner/pages/owner-setting/name-change/index',
    // 修改简介
    ownerSettingDescChange: '/package-owner/pages/owner-setting/desc-change/index',
    // 修改头像
    ownerSettingAvatarChange: '/package-owner/pages/owner-setting/avatar-change/index',
    // 修改背景图
    ownerSettingBackgroundChange: '/package-owner/pages/owner-setting/background-change/index',
};

module.exports = {
    TAB_BAR_PAGE,
    LANDING_PAGE,
    COMMON_PAGE,
    PACKAGE_ORDER_PAGE,
    PACKAGE_PRODUCT_PAGE,
    PACKAGE_ACTIVITY_PAGE,
    PACKAGE_MARKET_PAGE,
    PACKAGE_SIGNIN_PAGE,
    PACKAGE_STAR_PAGE,
    PACKAGE_STORE_PAGE,
    PACKAGE_OWNER_PAGE
};
